﻿using System.Configuration;
using Provider;

namespace CloudProject.Provider
{
    public class ExProvider : BaseProvider
    {
        public static DataProvider.DataProvider ProviderType = DataProvider.DataProvider.SqlServer;
        
        public static string ConnectionString = ConfigurationManager.ConnectionStrings["ExConnectionString"].ConnectionString;

        private ExProvider() : base(ExProvider.ProviderType, ExProvider.ConnectionString)
        {
        }

        private static ExProvider m_instance = null;

        public static ExProvider CreateInstance()
        {
            return m_instance ?? (m_instance = new ExProvider());
        }

        public static ExProvider CreateStandAloneInstance()
        {
            return new ExProvider();
        }

    }
}
